|
|
|
|
|
|
|
Lets now look at controls for which you cant use the automatic type of drag and drop. These are controls, such as the list and combo boxes, that need to have a Click event occur. If you have the automatic mode set, you cant select an item on the list box. Lets build a drag-and-drop form that uses the manual mode of drag and drop, as shown in Figure 32.5. |
|
|
|
|
|
|
|
|
Figure 32.5
An example of a manual drag-and-drop form. |
|
|
|
|
| An Example Using List Boxes 1. Create a new form. 2. Set the Name property of this form to frmDragManual. 3. Add a list box to the form. 4. Set the Name property to lstThings. 5. Add an image control next to the list box. 6. Set the Name property to imaArrow. 7. Set the DragMode property to 1 - Automatic. 8. Set the Tag property to Arrow. 9. Set the DragIcon and the Picture properties to the arw02rt.ico file located in the examples folder for this chapter. 10. Add another image control directly underneath the arrow image control. 11. Set the Name property to imaPhone. 12. Set the DragMode property to 1 - Automatic. 13. Set the Tag property to Phone. |
|
|
|